package oop2.src.enumDemo;

/**
 * 枚举是一种类,只包含初始化的几个对象
 */
public enum Season {
    SPRING,SUMMER,AUTUMN,WINTER;
}
/*这是反编译的代码,实际上就是用构造器申明静态常量
* Compiled from "Season.java"
final class Season extends java.lang.Enum<Season> {
    public static final Season SPRING;
    public static final Season SUMMER;
    public static final Season AUTUMN;
    public static final Season WINTER;
    public static Season[] values();
    public static Season valueOf(java.lang.String);
    static {};
}
* */